<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
   
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>员工信息页面</title>
<link rel="shortcut icon" href="images/zk.ico" type="image/x-icon" />
<link rel="stylesheet" href="lib/layui/css/layui.css">
<link rel="stylesheet" href="css/login.css">
<link rel="stylesheet" href="css/bootstrap.min.css" />
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<style type="text/css">
	#search{
		   
	}
	#seaInput{
		height: 30px;
	}
</style>
</head>
<body>
<h4>医生信息 页面</h4>
<div id="search">
		<form action="getEmpBy.do">
			<input type="text"  id="seaInput" name = "ename"><input type="submit" class="btn btn-info" value="搜索">
		</form>
	</div>
<table class="table">
		<tr>
			<td>ID</td> 
			<td>姓名</td>
			<td>密码</td>
			<td>等级</td>
			<td>部门</td>
			<td></td>
		</tr>
		<c:forEach items="${list }" var="l" varStatus="status">
			<tr>
				<td>${l.eid}</td>
				<td>${l.ename}</td>
				<td>${l.epwd}</td>
				<td>${l.elev}</td>
				<td>${l.dept.dename}</td>
 				<td><a href="delete?eid=${l.eid }"><button type="button" class="btn btn-danger">删除</button></a></td>
 				<td><a href="getEmpByEid?eid=${l.eid }"><button type="button" class="btn btn-info">修改</button></a></td>
			</tr>
		</c:forEach>
	</table>
     ${msg}  <br>

</body>
</html>